package org.nf.admin.api;

import org.nf.web.annotation.RequestMapping;
import org.nf.web.servlet.View;
import org.nf.web.servlet.view.JsonView;
import util.HttpClientUtils;

import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.Map;

public class ReceiveController extends BaseController{
    /**
     *测试连接doParamsGetWorld
     * @return
     */
    @RequestMapping("/doGet")
    public View doGet() {
        Map<String, String> map = new HashMap<>();
        map.put("name", "user1");
        String result = HttpClientUtils.sendGet("http://localhost:8080/doParamsGetWorld", map);

        return new JsonView(result);
    }




}
